<template>
  <div class="scroll-item-title">
    <div class="scroll-item-title-before"></div>
    <div class="scroll-item-title-content">{{ tabName }}</div>
  </div>
</template>
<script setup lang="tsx">
defineProps({
  tabName: {
    type: String,
    default: '',
  },
});
</script>
<style lang="scss" scoped>
.scroll-item {
  width: calc(100% - 20px);
  margin-bottom: 10px;

  .scroll-item-title {
    position: relative;
    height: 38px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;

    div {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }

    .scroll-item-title-after {
      right: 28px;
    }
  }
}
</style>
